﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Decode55
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox2.Text = string.Empty;
            if (string.IsNullOrEmpty(textBox1.Text))
            {
                MessageBox.Show("请输入55域原串！");
                textBox1.Focus();
                return;
            }
            List<TLV> list = SAXUnionFiled55Utils
            .saxUnionField55_2List(textBox1.Text);
            for (int i = 0; i < list.Count; i++)
            {
                textBox2.Text += "\r\n" + list[i].ToString();
            }
        }
    }
}
